package org.hq.mapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface  UserMapper<WebUser> {
    //用户添加
    int insert(@Param("user") WebUser user);

    /**
     * 通过用户id获取用户信息
     * @param user
     * @return
     *  @Select("SELECT * FROM users WHERE username = #{username}")
     */
  // @Select("select * from user")
    WebUser selectUserId(@Param("user") WebUser user);
}
